package cn.example.demo.modules.house.recommend;

import lombok.Getter;

/**
 * Description: 行为权重 枚举类
 *
 * @author Lzx
 * @create 2025/3/22 14:10
 */
@Getter
public enum BehaviorType {
    VIEW("VIEW", 1, 0.3f, "浏览行为"),
    COLLECT("COLLECT", 2, 0.6f, "收藏行为"),
    ORDER("ORDER", 3, 1.0f, "下单行为"),
    RATE("RATE", 4, 0.8f, "评价行为");

    private String name;
    private Integer index;
    private Float weight;
    private String description;

    BehaviorType(String name, Integer index, Float weight, String description) {
        this.name = name;
        this.index = index;
        this.weight = weight;
        this.description = description;
    }
}
